Part Number Hot Search : 
LT1239CS ZMM43B 17N80 70280 X5083S8 EUP34 MF430ST NDB610AE
Product Description
Full Text Search
 

To Download SAB83C166W-5M-T3 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  semiconductor group 1 10.94 l high performance 16-bit cpu with 4-stage pipeline l 100 ns instruction cycle time at 20 mhz cpu clock l 500 ns multiplication (16 16 bits), 1 m s division (32 / 16 bit) l enhanced boolean bit manipulation facilities l register-based design with multiple variable register banks l single-cycle context switching support l up to 256 kbytes linear address space for code and data l 1 kbyte on-chip ram l 32 kbytes on-chip rom (sab 83c166w only) l programmable external bus characteristics for different address ranges l 8-bit or 16-bit external data bus l multiplexed or demultiplexed external address/data buses l hold and hold-acknowledge bus arbitration support l 512 bytes on-chip special function register area l idle and power down modes l 8-channel interrupt-driven single-cycle data transfer facilities via peripheral event controller (pec) l 16-priority-level interrupt system l 10-channel 10-bit a/d converter with 9.7 m s conversion time l 16-channel capture/compare unit l two multi-functional general purpose timer units with 5 timers l two serial channels (usarts) l programmable watchdog timer l up to 76 general purpose i/o lines l direct clock input without prescaler l supported by a wealth of development tools like c-compilers, macro-assembler packages, emulators, evaluation boards, hll-debuggers, simulators, logic analyzer disassemblers, programming boards l on-chip bootstrap loader l 100-pin plastic mqfp package (eiaj) c16x-family of high-performance cmos 16-bit microcontrollers preliminary sab 80c166w/83c166w / 83c166w 16-bit microcontroller sab 80c166w/ 83c166w/ 83c166w
sab 80c166w/83c166w semiconductor group 2 introduction the sab 80c166w/83c166w is a representative of the siemens sab 80c166 family of full featured single-chip cmos microcontrollers. it combines high cpu performance (up to 10 million instructions per second) with high peripheral functionality and enhanced io-capabilities. these devices derive the cpu clock signal (operating clock) directly from the on-chip oscillator without using a prescaler. this reduces the devices eme. figure 1 logic symbol ordering information type ordering code package function sab 83c166w-5m on request p-mqfp-100-2 16-bit microcontroller, 0 ?c to +70 ?c, 1 kbyte ram and 32 kbyte rom sab 83c166w-5m- t3 q67120-d... p-mqfp-100-2 16-bit microcontroller, -40 ?c to +85 ?c, 1 kbyte ram and 32 kbyte rom sab 83c166w-5m- t4 q67120-d... p-mqfp-100-2 16-bit microcontroller, -40 ?c to +110 ?c 1 kbyte ram and 32 kbyte rom sab 80c166w/ 83c166w-m on request p-mqfp-100-2 16-bit microcontroller, 0 ?c to +70 ?c 1 kbyte ram sab 80c166w
sab 80c166w/83c166w semiconductor group 3 note: the ordering codes (q67120-d...) for the mask-rom versions are defined for each product after verification of the respective rom code. pin configuration rectangular p-mqfp-100-2 (top view) figure 2 sab 80c166w/ 83c166w-m-t3 q67120-c864 p-mqfp-100-2 16-bit microcontroller, -40 ?c to +85 ?c 1 kbyte ram sab 80c166w/ 83c166w-m-t4 q67120-c917 p-mqfp-100-2 16-bit microcontroller, -40 ?c to +110 ?c 1 kbyte ram type ordering code package function sab 80c166w/
sab 80c166w/83c166w semiconductor group 4 pin definitions and functions pin no. symbol input (i) output (o) function 16 - 17 16 17 p4.0 C p4.1 i/o o o port 4 is a 2-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high- impedance state. in case of an external bus configuration, port 4 can be used to output the segment address lines: p4.0 a16 least significant segment addr. line p4.1 a17 most significant segment addr. line 20 19 xtal1 xtal2 i o xtal1: input to the oscillator amplifier and input to the internal clock generator xtal2: output of the oscillator amplifier circuit. to clock the device from an external source, drive xtal1, while leaving xtal2 unconnected. minimum and maximum high/low and rise/fall times specified in the ac characteristics must be observed. 22 23 24 busact, ebc1, ebc0 i i i external bus configuration selection inputs. these pins are sampled during reset and select either the single chip mode or one of the four external bus configurations: busact ebc1 ebc0 mode/bus configuration 0 0 0 8-bit demultiplexed bus 0 0 1 8-bit multiplexed bus 0 1 0 16-bit muliplexed bus 0 1 1 16-bit demultiplexed bus 1 0 0 single chip mode 1 0 1 reserved. 1 1 0 reserved. 1 1 1 reserved. romless versions must have pin busact tied to 0. 27 rstin i reset input with schmitt-trigger characteristics. a low level at this pin for a specified duration while the oscillator is running resets the sab 80c166w/83c166w. an internal pullup resistor permits power-on reset using only a capacitor connected to v ss . 28 rstout o internal reset indication output . this pin is set to a low level when the part is executing either a hardware-, a software- or a watchdog timer reset. rstout remains low until the einit (end of initialization) instruction is executed.
sab 80c166w/83c166w semiconductor group 5 29 nmi i non-maskable interrupt input. a high to low transition at this pin causes the cpu to vector to the nmi trap routine. when the pwrdn (power down) instruction is executed, the nmi pin must be low in order to force the sab 80c166w/83c166w to go into power down mode. if nmi is high, when pwrdn is executed, the part will continue to run in normal mode. if not used, pull nmi high externally. 29 ale o address latch enable output. can be used for latching the address into external memory or an address latch in the multiplexed bus modes. 26 rd o external memory read strobe. rd is activated for every external instruction or data read access. 30 - 37 40 - 47 p1.0 C p1.15 i/o port 1 is a 16-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high- impedance state. port 1 is used as the 16-bit address bus (a) in demultiplexed bus modes and also after switching from a demultiplexed bus mode to a multiplexed bus mode.. 48 - 53 56 - 59 p5.0 C p5.9 i i port 5 is a 10-bit input-only port with schmitt-trigger characteristics. the pins of port 5 also serve as the (up to 10) analog input channels for the a/d converter, where p5.x equals anx (analog input channel x). 62 - 77 62 75 76 77 p2.0 C p2.15 i/o i/o i/o o i/o o i/o i port 2 is a 16-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high- impedance state. the following port 2 pins also serve for alternate functions: p2.0 cc0io capcom: cc0 cap.-in/comp.out ... ... ... p2.13 cc13io capcom: cc13 cap.-in/comp.out, breq external bus request output p2.14 cc14io capcom: cc14 cap.-in/comp.out, hlda external bus hold acknowl. output p2.15 cc15io capcom: cc15 cap.-in/comp.out, hold external bus hold request input pin definitions and functions (contd) pin no. symbol input (i) output (o) function
sab 80c166w/83c166w semiconductor group 6 80 - 92, 95 - 97 80 81 82 83 84 85 86 87 88 89 90 91 92 95 96 97 p3.0 C p3.15 i/o i/o i o i o i i i i o i/o o i/o o o i o port 3 is a 16-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high- impedance state. the following port 3 pins also serve for alternate functions: p3.0 t0in capcom timer t0 count input p3.1 t6out gpt2 timer t6 toggle latch output p3.2 capin gpt2 register caprel capture input p3.3 t3out gpt1 timer t3 toggle latch output p3.4 t3eud gpt1 timer t3 ext.up/down ctrl.input p3.5 t4in gpt1 timer t4 input for count/gate/reload/capture p3.6 t3in gpt1 timer t3 count/gate input p3.7 t2in gpt1 timer t2 input for count/gate/reload/capture p3.8 txd1 asc1 clock/data output (asyn./syn.) p3.9 rxd1 asc1 data input (asyn.) or i/o (syn.) p3.10 t d0 asc0 clock/data output (asyn./syn.) p3.11 r d0 asc0 data input (asyn.) or i/o (syn.) p3.12 bhe ext. memory high byte enable signal, p3.13 wr external memory write strobe p3.14 ready ready signal input p3.15 clkout system clock output (=cpu clock) 98 C 5 8 C 15 p0.0 C p0.15 i/o port 0 is a 16-bit bidirectional io port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high- impedance state. in case of an external bus configuration, port 0 serves as the address (a) and address/data (ad) bus in multiplexed bus modes and as the data (d) bus in demultiplexed bus modes. demultiplexed bus modes: data path width: 8-bit 16-bit p0.0 C p0.7: d0 C d7 d0 - d7 p0.8 C p0.15: output! d8 - d15 multiplexed bus modes: data path width: 8-bit 16-bit p0.0 C p0.7: ad0 C ad7 ad0 - ad7 p0.8 C p0.15: a8 - a15 ad8 - ad15 54 v aref - reference voltage for the a/d converter. 55 v agnd - reference ground for the a/d converter. pin definitions and functions (contd) pin no. symbol input (i) output (o) function
sab 80c166w/83c166w semiconductor group 7 7, 18, 38, 61, 79, 93 v cc - digital supply voltage: + 5 v during normal operation and idle mode. 3 2.5 v during power down mode 6, 21, 39, 60, 78, 94 v ss - digital ground. pin definitions and functions (contd) pin no. symbol input (i) output (o) function
sab 80c166w/83c166w semiconductor group 8 functional description the architecture of the sab 80c166w/83c166w combines advantages of both risc and cisc processors and of advanced peripheral subsystems in a very well-balanced way. the following block diagram gives an overview of the different on-chip components and of the advanced, high bandwidth internal bus structure of the sab 80c166w/83c166w. note : all time specifications refer to a cpu clock of 20 mhz (see definition in the ac characteristics section). figure 3 block diagram
sab 80c166w/83c166w semiconductor group 9 memory organization the memory space of the sab 80c166w/83c166w is configured in a von neumann architecture which means that code memory, data memory, registers and i/o ports are organized within the same linear address space which includes 256 kbytes. address space expansion to 16 mbytes is provided for future versions. the entire memory space can be accessed bytewise or wordwise. particular portions of the on-chip memory have additionally been made directly bit addressable. the sab 83c166w contains 32 kbytes of on-chip mask-programmable rom for code or constant data. the rom can be mapped to either segment 0 or segment 1. 1 kbyte of on-chip ram is provided as a storage for user defined variables, for the system stack, general purpose register banks and even for code. a register bank can consist of up to 16 wordwide (r0 to r15) and/or bytewide (rl0, rh0, , rl7, rh7) so-called general purpose registers (gprs). 512 bytes of the address space are reserved for the special function register area. sfrs are wordwide registers which are used for controlling and monitoring functions of the different on-chip units. 98 sfrs are currently implemented. unused sfr addresses are reserved for future members of the sab 80c166 family. in order to meet the needs of designs where more memory is required than is provided on chip, up to 256 kbytes of external ram and/or rom can be connected to the microcontroller. external bus controller all of the external memory accesses are performed by a particular on-chip external bus controller (ebc). it can be programmed either to single chip mode when no external memory is required, or to one of four different external memory access modes, which are as follows: C 16-/18-bit addresses, 16-bit data, demultiplexed C 16-/18-bit addresses, 16-bit data, multiplexed C 16-/18-bit addresses, 8-bit data, multiplexed C 16-/18-bit addresses, 8-bit data, demultiplexed in the demultiplexed bus modes, addresses are output on port 1 and data is input/output on port 0. in the multiplexed bus modes both addresses and data use port 0 for input/output. important timing characteristics of the external bus interface (memory cycle time, memory tri- state time, read/write delay and length of ale, ie. address setup/hold time with respect to ale) have been made programmable to allow the user the adaption of a wide range of different types of memories. in addition, different address ranges may be accessed with different bus characteristics. access to very slow memories is supported via a particular ready function. a hold/ hlda protocol is available for bus arbitration. for applications which require less than 64 kbytes of external memory space, a non-segmented memory model can be selected. in this case all memory locations can be addressed by 16 bits and port 4 is not required to output the additional segment address lines.
sab 80c166w/83c166w semiconductor group 10 central processing unit (cpu) the main core of the cpu consists of a 4-stage instruction pipeline, a 16-bit arithmetic and logic unit (alu) and dedicated sfrs. additional hardware has been spent for a separate multiply and divide unit, a bit-mask generator and a barrel shifter. based on these hardware provisions, most of the sab 80c166w/83c166ws instructions can be executed in just one machine cycle which requires 100 ns at 20-mhz cpu clock. for example, shift and rotate instructions are always processed during one machine cycle independent of the number of bits to be shifted. all multiple-cycle instructions have been optimized so that they can be executed very fast as well: branches in 2 cycles, a 16 16 bit multiplication in 5 cycles and a 32-/16 bit division in 10 cycles. another pipeline optimization, the so-called jump cache, allows reducing the execution time of repeatedly performed jumps in a loop from 2 cycles to 1 cycle. the cpu disposes of an actual register context consisting of up to 16 wordwide gprs which are physically allocated within the on-chip ram area. a context pointer (cp) register determines the base address of the active register bank to be accessed by the cpu at a time. the number of register banks is only restricted by the available internal ram space. for easy parameter passing, a register banks may overlap others. figure 4 cpu block diagram 32 kbyte in the sab 83c166w 1 kbyte
sab 80c166w/83c166w semiconductor group 11 a system stack of up to 512 bytes is provided as a storage for temporary data. the system stack is allocated in the on-chip ram area, and it is accessed by the cpu via the stack pointer (sp) register. two separate sfrs, stkov and stkun, are implicitly compared against the stack pointer value upon each stack access for the detection of a stack overflow or underflow. the high performance offered by the hardware implementation of the cpu can efficiently be utilized by a programmer via the highly efficient sab 80c166w/83c166w instruction set which includes the following instruction classes: C arithmetic instructions C logical instructions C boolean bit manipulation instructions C compare and loop control instructions C shift and rotate instructions C prioritize instruction C data movement instructions C system stack instructions C jump and call instructions C return instructions C system control instructions C miscellaneous instructions the basic instruction length is either 2 or 4 bytes. possible operand types are bits, bytes and words. a variety of direct, indirect or immediate addressing modes are provided to specify the required operands.
sab 80c166w/83c166w semiconductor group 12 interrupt system with an interrupt response time within a range from just 250 ns to 600 ns (in case of internal program execution), the sab 80c166w/83c166w is capable of reacting very fast to the occurence of non-deterministic events. the architecture of the sab 80c166w/83c166w supports several mechanisms for fast and flexible response to service requests that can be generated from various sources internal or external to the microcontroller. any of these interrupt requests can be programmed to being serviced by the interrupt controller or by the peripheral event controller (pec). in contrast to a standard interrupt service where the current program execution is suspended and a branch to the interrupt vector table is performed, just one cycle is stolen from the current cpu activity to perform a pec service. a pec service implies a single byte or word data transfer between any two memory locations with an additional increment of either the pec source or the destination pointer. an individual pec transfer counter is implicity decremented for each pec service except when performing in the continuous transfer mode. when this counter reaches zero, a standard interrupt is performed to the corresponding source related vector location. pec services are very well suited, for example, for supporting the transmission or reception of blocks of data, or for transferring a/d converted results to a memory table. the sab 80c166w/83c166w has 8 pec channels each of which offers such fast interrupt-driven data transfer capabilities. a separate control register which contains an interrupt request flag, an interrupt enable flag and an interrupt priority bitfield exists for each of the possible interrupt sources. via its related register, each source can be programmed to one of sixteen interrupt priority levels. once having been accepted by the cpu, an interrupt service can only be interrupted by a higher prioritized service request. for the standard interrupt processing, each of the possible interrupt sources has a dedicated vector location. software interrupts are supported by means of the trap instruction in combination with an individual trap (interrupt) number. the following table shows all of the possible sab 80c166w/83c166w interrupt sources and the corresponding hardware-related interrupt flags, vectors, vector locations and trap (interrupt) numbers:
sab 80c166w/83c166w semiconductor group 13 source of interrupt or pec service request request flag enable flag interrupt vector vector location trap number capcom register 0 cc0ir cc0ie cc0int 40 h 10 h capcom register 1 cc1ir cc1ie cc1int 44 h 11 h capcom register 2 cc2ir cc2ie cc2int 48 h 12 h capcom register 3 cc3ir cc3ie cc3int 4c h 13 h capcom register 4 cc4ir cc4ie cc4int 50 h 14 h capcom register 5 cc5ir cc5ie cc5int 54 h 15 h capcom register 6 cc6ir cc6ie cc6int 58 h 16 h capcom register 7 cc7ir cc7ie cc7int 5c h 17 h capcom register 8 cc8ir cc8ie cc8int 60 h 18 h capcom register 9 cc9ir cc9ie cc9int 64 h 19 h capcom register 10 cc10ir cc10ie cc10int 68 h 1a h capcom register 11 cc11ir cc11ie cc11int 6c h 1b h capcom register 12 cc12ir cc12ie cc12int 70 h 1c h capcom register 13 cc13ir cc13ie cc13int 74 h 1d h capcom register 14 cc14ir cc14ie cc14int 78 h 1e h capcom register 15 cc15ir cc15ie cc15int 7c h 1f h capcom timer 0 t0ir t0ie t0int 80 h 20 h capcom timer 1 t1ir t1ie t1int 84 h 21 h gpt1 timer 2 t2ir t2ie t2int 88 h 22 h gpt1 timer 3 t3ir t3ie t3int 8c h 23 h gpt1 timer 4 t4ir t4ie t4int 90 h 24 h gpt2 timer 5 t5ir t5ie t5int 94 h 25 h gpt2 timer 6 t6ir t6ie t6int 98 h 26 h gpt2 caprel register crir crie crint 9c h 27 h a/d conversion complete adcir adcie adcint a0 h 28 h a/d overrun error adeir adeie adeint a4 h 29 h asc0 transmit s0tir s0tie s0tint a8 h 2a h asc0 receive s0rir s0rie s0rint ac h 2b h asc0 error s0eir s0eie s0eint b0 h 2c h asc1 transmit s1tir s1tie s1tint b4 h 2d h asc1 receive s1rir s1rie s1rint b8 h 2e h asc1 error s1eir s1eie s1eint bc h 2f h
sab 80c166w/83c166w semiconductor group 14 the sab 80c166w/83c166w also provides an excellent mechanism to identify and to process exceptions or error conditions that arise during run-time, so-called hardware traps. hardware traps cause immediate non-maskable system reaction which is similar to a standard interrupt service (branching to a dedicated vector table location). the occurence of a hardware trap is additionally signified by an individual bit in the trap flag register (tfr). except when another higher prioritized trap service is in progress, a hardware trap will interrupt any actual program execution. in turn, hardware trap services can normally not be interrupted by standard or pec interrupts. the following table shows all of the possible exceptions or error conditions that can arise during run- time: exception condition trap flag trap vector vector location trap number trap priority reset functions: hardware reset software reset watchdog timer overflow reset reset reset 0000 h 0000 h 0000 h 00 h 00 h 00 h iii iii iii class a hardware traps: non-maskable interrupt stack overflow stack underflow nmi stkof stkuf nmitrap stotrap stutrap 0008 h 0010 h 0018 h 02 h 04 h 06 h ii ii ii class b hardware traps: undefined opcode protected instruction fault illegal word operand access illegal instruction access illegal external bus access undopc prtflt illopa illina illbus btrap btrap btrap btrap btrap 0028 h 0028 h 0028 h 0028 h 0028 h 0a h 0a h 0a h 0a h 0a h i i i i i reserved [002c h C 003c h ] [0b h C 0f h ] software traps trap instruction any [0000 h C 01fc h ] in steps of 04 h any [00 h C 7f h ] current cpu priority
sab 80c166w/83c166w semiconductor group 15 capture/compare (capcom) unit the capcom unit supports generation and control of timing sequences on up to 16 channels with a maximum resolution of 400 ns (@ 20 mhz cpu clock). the capcom unit is typically used to handle high speed i/o tasks such as pulse and waveform generation, pulse width modulation (pmw), digital to analog (d/a) conversion, software timing, or time recording relative to external events. two 16-bit timers (t0/t1) with reload registers provide two independent time bases for the capture/ compare register array. the input clock for the timers is programmable to several prescaled values of the cpu clock, or may be derived from an overflow/underflow of timer t6 in module gpt2. this provides a wide range of variation for the timer period and resolution and allows precise adjustments to the application specific requirements. in addition, an external count input for capcom timer t0 allows event scheduling for the capture/compare registers relative to external events. the capture/compare register array contains 16 dual purpose capture/compare registers, each of which may be individually allocated to either capcom timer t0 or t1, and programmed for capture or compare function. each register has one port pin associated with it which serves as an input pin for triggering the capture function, or as an output pin to indicate the occurence of a compare event. when a capture/compare register has been selected for capture mode, the current contents of the allocated timer will be latched (captured) into the capture/compare register in response to an external event at the port pin which is associated with this register. in addition, a specific interrupt request for this capture/compare register is generated. either a positive, a negative, or both a positive and a negative external signal transition at the pin can be selected as the triggering event. the contents of all registers which have been selected for one of the five compare modes are continuously compared with the contents of the allocated timers. when a match occurs between the timer value and the value in a capture/compare register, specific actions will be taken based on the selected compare mode. compare modes function mode 0 interrupt-only compare mode; several compare interrupts per timer period are possible mode 1 pin toggles on each compare match; several compare events per timer period are possible mode 2 interrupt-only compare mode; only one compare interrupt per timer period is generated mode 3 pin set 1 on match; pin reset 0 on compare time overflow; only one compare event per timer period is generated double register mode two registers operate on one pin; pin toggles on each compare match; several compare events per timer period are possible.
sab 80c166w/83c166w semiconductor group 16 figure 5 capcom-unit block diagram x = 0 y = 1
sab 80c166w/83c166w semiconductor group 17 general purpose timer (gpt) unit the gpt unit represents a very flexible multifunctional timer/counter structure which may be used for many different time related tasks such as event timing and counting, pulse width and duty cycle measurements, pulse generation, or pulse multiplication. the gpt unit incorporates five 16-bit timers which are organized in two separate modules, gpt1 and gpt2. each timer in each module may operate independently in a number of different modes, or may be concatenated with another timer of the same module. each of the three timers t2, t3, t4 of module gpt1 can be configured individually for one of three basic modes of operation, which are timer, gated timer, and counter mode. in timer mode, the input clock for a timer is derived from the cpu clock, divided by a programmable prescaler, while counter mode allows a timer to be clocked in reference to external events. pulse width or duty cycle measurement is supported in gated timer mode, where the operation of a timer is controlled by the gate level on an external input pin. for these purposes, each timer has one associated port pin (txin) which serves as gate or clock input. the maximum resolution of the timers in module gpt1 is 400 ns (@ 20 mhz cpu clock). figure 6 block diagram of gpt1
sab 80c166w/83c166w semiconductor group 18 the count direction (up/down) for each timer is programmable by software. for timer t3 the count direction may additionally be altered dynamically by an external signal on a port pin (t3eud) to facilitate e. g. position tracking. timer t3 has an output toggle latch (t3otl) which changes its state on each timer overflow/ underflow. the state of this latch may be output on a port pin (t3out) e.g. for timeout monitoring of external hardware components, or may be used internally to clock timers t2 and t4 for measuring long time periods with high resolution. in addition to their basic operating modes, timers t2 and t4 may be configured as reload or capture registers for timer t3. when used as capture or reload registers, timers t2 and t4 are stopped. the contents of timer t3 is captured into t2 or t4 in response to a signal at their associated input pins (txin). timer t3 is reloaded with the contents of t2 or t4 triggered either by an external signal or by a selectable state transition of its toggle latch t3otl. when both t2 and t4 are configured to alternately reload t3 on opposite state transitions of t3otl with the low and high times of a pwm signal, this signal can be constantly generated without software intervention. figure 7 block diagram of gpt2
sab 80c166w/83c166w semiconductor group 19 with its maximum resolution of 200 ns (@ 20 mhz), the gpt2 module provides precise event control and time measurement. it includes two timers (t5, t6) and a capture/reload register (caprel). both timers can be clocked with an input clock which is derived from the cpu clock via a programmable prescaler. the count direction (up/down) for each timer is programmable by software. concatenation of the timers is supported via the output toggle latch (t6otl) of timer t6, which changes its state on each timer overflow/underflow. the state of this latch may be used to clock timer t5, or it may be output on a port pin (t6out). the overflows/underflows of timer t6 can additionally be used to clock the capcom timers t0 or t1, and to cause a reload from the caprel register. the caprel register may capture the contents of timer t5 based on an external signal transition on the corresponding port pin (capin), and timer t5 may optionally be cleared after the capture procedure. this allows absolute time differences to be measured or pulse multiplication to be performed without software overhead. a/d converter for analog signal measurement, a 10-bit a/d converter with 10 multiplexed input channels and a sample and hold circuit has been integrated on-chip. it uses the method of successive approximation. the sample time (for loading the capacitors) and the conversion time adds up to 9.7 us @ 20 mhz cpu clock. overrun error detection/protection is provided for the conversion result register (addat): an interrupt request will be generated when the result of a previous conversion has not been read from the result register at the time the next conversion is complete. for applications which require less than 10 analog input channels, the remaining channel inputs can be used as digital input port pins. the a/d converter of the sab 80c166w/83c166w supports four different conversion modes. in the standard single channel conversion mode, the analog level on a specified channel is sampled once and converted to a digital result. in the single channel continuous mode, the analog level on a specified channel is repeatedly sampled and converted without software intervention. in the auto scan mode, the analog levels on a prespecified number of channels are sequentially sampled and converted. in the auto scan continuous mode, the number of prespecified channels is repeatedly sampled and converted. the peripheral event controller (pec) may be used to automatically store the conversion results into a table in memory for later evaluation, without requiring the overhead of entering and exiting interrupt routines for each data transfer.
sab 80c166w/83c166w semiconductor group 20 parallel ports the sab 80c166w/83c166w provides up to 76 i/o lines which are organized into five input/output ports and one input port. all port lines are bit-addressable, and all input/output lines are individually (bit-wise) programmable as inputs or outputs via direction registers. the i/o ports are true bidirectional ports which are switched to high impedance state when configured as inputs. during the internal reset, all port pins are configured as inputs. all port lines have programmable alternate input or output functions associated with them. port 0 and port 1 may be used as address and data lines when accessing external memory, while port 4 outputs the additional segment address bits a17/a16 in systems where segmentation is enabled to access more than 64 kbytes of memory. port 2 is associated with the capture inputs or compare outputs of the capcom unit and/or with optional bus arbitration signals ( breq, hlda, hold). port 3 includes alternate functions of timers, serial interfaces, optional bus control signals ( wr, bhe, ready) and the system clock output (clkout). port 5 is used for the analog input channels to the a/d converter. all port lines that are not used for these alternate functions may be used as general purpose i/o lines. serial channels serial communication with other microcontrollers, processors, terminals or external peripheral components is provided by two serial interfaces with identical functionality, asynchronous/ synchronous serial channels asc0 and asc1. they are upward compatible with the serial ports of the siemens sab 8051x microcontroller family and support full-duplex asynchronous communication up to 625 kbaud and half-duplex synchronous communication up to 2.5 mbaud @ 20 mhz cpu clock. two dedicated baud rate generators allow to set up all standard baud rates without oscillator tuning. for transmission, reception, and erroneous reception 3 separate interrupt vectors are provided for each serial channel. in asynchronous mode, 8- or 9-bit data frames are transmitted or received, preceded by a start bit and terminated by one or two stop bits. for multiprocessor communication, a mechanism to distinguish address from data bytes has been included (8-bit data + wake up bit mode). in synchronous mode one data byte is transmitted or received synchronously to a shift clock which is generated by the sab 80c166w/83c166w. a loop back option is available for testing purposes. a number of optional hardware error detection capabilities has been included to increase the reliability of data transfers. a parity bit can automatically be generated on transmission or be checked on reception. framing error detection allows to recognize data frames with missing stop bits. an overrun error will be generated, if the last character received has not been read out of the receive buffer register at the time the reception of a new character is complete.
sab 80c166w/83c166w semiconductor group 21 watchdog timer the watchdog timer represents one of the fail-safe mechanisms which have been implemented to prevent the controller from malfunctioning for longer periods of time. the watchdog timer is always enabled after a reset of the chip, and can only be disabled in the time interval until the einit (end of initialization) instruction has been executed. thus, the chips start-up procedure is always monitored. the software has to be designed to service the watchdog timer before it overflows. if, due to hardware or software related failures, the software fails to do so, the watchdog timer overflows and generates an internal hardware reset and pulls the rstout pin low in order to allow external hardware components to be reset. the watchdog timer is a 16-bit timer, clocked with the cpu clock divided either by 2 or by 128. the high byte of the watchdog timer register can be set to a prespecified reload value (stored in wdtrel) in order to allow further variation of the monitored time interval. each time it is serviced by the application software, the high byte of the watchdog timer is reloaded. thus, time intervals between 25 m s and 420 ms can be monitored (@ 20 mhz cpu clock). the default watchdog timer interval after reset is 6.55 ms (@ 20 mhz cpu clock). bootstrap loader the sab 80c166w/83c166w provides a built-in bootstrap loader (bsl), which allows to start program execution out of the sab 80c166w/83c166ws internal ram. this start program is loaded via the serial interface asc0 and does not require external memory or an internal rom. the sab 80c166w/83c166w enters bsl mode, when ale is sampled high at the end of a hardware reset and if nmi becomes active directly after the end of the internal reset sequence. bsl mode is entered independent of the bus mode selected via ebc0, ebc1 and busact. after entering bsl mode the sab 80c166w/83c166w scans the rxd0 line to receive a zero byte, ie. one start bit, eight 0 data bits and one stop bit. from the duration of this zero byte it calculates the corresponding baudrate factor with respect to the current cpu clock and initializes asc0 accordingly. using this baudrate, an acknowledge byte is returned to the host that provides the loaded data. the sab 80c166w/83c166w returns the value <55 h >. the next 32 bytes received via asc0 are stored sequentially into locations 0fa40 h through 0fa5f h of the internal ram. to execute the loaded code the bsl then jumps to location 0fa40 h . the loaded program may load additional code / data, change modes, etc. the sab 80c166w/83c166w exits bsl mode upon a software reset (ignores the ale level) or a hardware reset (remove conditions for entering bsl mode before). instruction set summary the summary on the following pages lists the instructions of the sab 80c166w/83c166w ordered into logical groups.
sab 80c166w/83c166w semiconductor group 22 instruction set summary mnemonic description bytes arithmetic operations add rw, rw add direct word gpr to direct gpr 2 add rw, [rw] add indirect word memory to direct gpr 2 add rw, [rw +] add indirect word memory to direct gpr and post- increment source pointer by 2 2 add rw, #data3 add immediate word data to direct gpr 2 add reg, #data16 add immediate word data to direct register 4 add reg, mem add direct word memory to direct register 4 add mem, reg add direct word register to direct memory 4 addb rb, rb add direct byte gpr to direct gpr 2 addb rb, [rw] add indirect byte memory to direct gpr 2 addb rb, [rw +] add indirect byte memory to direct gpr and post-increment source pointer by 1 2 addb rb, #data3 add immediate byte data to direct gpr 2 addb reg, #data8 add immediate byte data to direct register 4 addb reg, mem add direct byte memory to direct register 4 addb mem, reg add direct byte register to direct memory 4 addc rw, rw add direct word gpr to direct gpr with carry 2 addc rw, [rw] add indirect word memory to direct gpr with carry 2 addc rw, [rw +] add indirect word memory to direct gpr with carry and post-increment source pointer by 2 2 addc rw, #data3 add immediate word data to direct gpr with carry 2 addc reg, #data16 add immediate word data to direct register with carry 4 addc reg, mem add direct word memory to direct register with carry 4 addc mem, reg add direct word register to direct memory with carry 4 addcb rb, rb add direct byte gpr to direct gpr with carry 2 addcb rb, [rw] add indirect byte memory to direct gpr with carry 2 addcb rb, [rw +] add indirect byte memory to direct gpr with carry and post-increment source pointer by 1 2 addcb rb, #data3 add immediate byte data to direct gpr with carry 2 addcb reg, #data8 add immediate byte data to direct register with carry 4 addcb reg, mem add direct byte memory to direct register with carry 4
sab 80c166w/83c166w semiconductor group 23 arithmetic operations (contd) addcb mem, reg add direct byte register to direct memory with carry 4 sub rw, rw subtract direct word gpr from direct gpr 2 sub rw, [rw] subtract indirect word memory from direct gpr 2 sub rw, [rw +] subtract indirect word memory from direct gpr and post-increment source pointer by 2 2 sub rw, #data3 subtract immediate word data from direct gpr 2 sub reg, #data16 subtract immediate word data from direct register 4 sub reg, mem subtract direct word memory from direct register 4 sub mem, reg subtract direct word register from direct memory 4 subb rb, rb subtract direct byte gpr from direct gpr 2 subb rb, [rw] subtract indirect byte memory from direct gpr 2 subb rb, [rw +] subtract indirect byte memory from direct gpr and post-increment source pointer by 1 2 subb rb, #data3 subtract immediate byte data from direct gpr 2 subb reg, #data8 subtract immediate byte data from direct register 4 subb reg, mem subtract direct byte memory from direct register 4 subb mem, reg subtract direct byte register from direct memory 4 subc rw, rw subtract direct word gpr from direct gpr with carry 2 subc rw, [rw] subtract indirect word memory from direct gpr with carry 2 subc rw, [rw +] subtract indirect word memory from direct gpr with carry and post-increment source pointer by 2 2 subc rw, #data3 subtract immediate word data from direct gpr with carry 2 subc reg, #data16 subtract immediate word data from direct register with carry 4 subc reg, mem subtract direct word memory from direct register with carry 4 subc mem, reg subtract direct word register from direct memory with carry 4 subcb rb, rb subtract direct byte gpr from direct gpr with carry 2 subcb rb, [rw] subtract indirect byte memory from direct gpr with carry 2 subcb rb, [rw +] subtract indirect byte memory from direct gpr with carry and post-increment source pointer by 1 2 subcb rb, #data3 subtract immediate byte data from direct gpr with carry 2 subcb reg, #data8 subtract immediate byte data from direct register with carry 4 instruction set summary (contd) mnemonic description bytes
sab 80c166w/83c166w semiconductor group 24 arithmetic operations (contd) subcb reg, mem subtract direct byte memory from direct register with carry 4 subcb mem, reg subtract direct byte register from direct memory with carry 4 mul rw, rw signed multiply direct gpr by direct gpr (16-16-bit) 2 mulu rw, rw unsigned multiply direct gpr by direct gpr (16-16-bit) 2 div rw signed divide register mdl by direct gpr (16-/16-bit) 2 divl rw signed long divide register md by direct gpr (32-/16-bit) 2 divlu rw unsigned long divide register md by direct gpr (32-/16-bit) 2 divu rw unsigned divide register mdl by direct gpr (16-/16-bit) 2 cpl rw complement direct word gpr 2 cplb rb complement direct byte gpr 2 neg rw negate direct word gpr 2 negb rb negate direct byte gpr 2 logical instructions and rw, rw bitwise and direct word gpr with direct gpr 2 and rw, [rw] bitwise and indirect word memory with direct gpr 2 and rw, [rw +] bitwise and indirect word memory with direct gpr and post-increment source pointer by 2 2 and rw, #data3 bitwise and immediate word data with direct gpr 2 and reg, #data16 bitwise and immediate word data with direct register 4 and reg, mem bitwise and direct word memory with direct register 4 and mem, reg bitwise and direct word register with direct memory 4 andb rb, rb bitwise and direct byte gpr with direct gpr 2 andb rb, [rw] bitwise and indirect byte memory with direct gpr 2 andb rb, [rw +] bitwise and indirect byte memory with direct gpr and post-increment source pointer by 1 2 andb rb, #data3 bitwise and immediate byte data with direct gpr 2 andb reg, #data8 bitwise and immediate byte data with direct register 4 andb reg, mem bitwise and direct byte memory with direct register 4 andb mem, reg bitwise and direct byte register with direct memory 4 instruction set summary (contd) mnemonic description bytes
sab 80c166w/83c166w semiconductor group 25 logical instructions (contd) or rw, rw bitwise or direct word gpr with direct gpr 2 or rw, [rw] bitwise or indirect word memory with direct gpr 2 or rw, [rw +] bitwise or indirect word memory with direct gpr and post-increment source pointer by 2 2 or rw, #data3 bitwise or immediate word data with direct gpr 2 or reg, #data16 bitwise or immediate word data with direct register 4 or reg, mem bitwise or direct word memory with direct register 4 or mem, reg bitwise or direct word register with direct memory 4 orb rb, rb bitwise or direct byte gpr with direct gpr 2 orb rb, [rw] bitwise or indirect byte memory with direct gpr 2 orb rb, [rw +] bitwise or indirect byte memory with direct gpr and post-increment source pointer by 1 2 orb rb, #data3 bitwise or immediate byte data with direct gpr 2 orb reg, #data8 bitwise or immediate byte data with direct register 4 orb reg, mem bitwise or direct byte memory with direct register 4 orb mem, reg bitwise or direct byte register with direct memory 4 xor rw, rw bitwise xor direct word gpr with direct gpr 2 xor rw, [rw] bitwise xor indirect word memory with direct gpr 2 xor rw, [rw +] bitwise xor indirect word memory with direct gpr and post-increment source pointer by 2 2 xor rw, #data3 bitwise xor immediate word data with direct gpr 2 xor reg, #data16 bitwise xor immediate word data with direct register 4 xor reg, mem bitwise xor direct word memory with direct register 4 xor mem, reg bitwise xor direct word register with direct memory 4 xorb rb, rb bitwise xor direct byte gpr with direct gpr 2 xorb rb, [rw] bitwise xor indirect byte memory with direct gpr 2 xorb rb, [rw +] bitwise xor indirect byte memory with direct gpr and post-increment source pointer by 1 2 xorb rb, #data3 bitwise xor immediate byte data with direct gpr 2 xorb reg, #data8 bitwise xor immediate byte data with direct register 4 xorb reg, mem bitwise xor direct byte memory with direct register 4 xorb mem, reg bitwise xor direct byte register with direct memory 4 instruction set summary (contd) mnemonic description bytes
sab 80c166w/83c166w semiconductor group 26 boolean bit manipulation operations bclr bitaddr clear direct bit 2 bset bitaddr set direct bit 2 bmov bitaddr, bitaddr move direct bit to direct bit 4 bmovn bitaddr, bitaddr move negated direct bit to direct bit 4 band bitaddr, bitaddr and direct bit with direct bit 4 bor bitaddr, bitaddr or direct bit with direct bit 4 bxor bitaddr, bitaddr xor direct bit with direct bit 4 bcmp bitaddr, bitaddr compare direct bit to direct bit 4 bfldh bitoff, #mask8, #data8 bitwise modify masked high byte of bit-addressable direct word memory with immediate data 4 bfldl bitoff, #mask8, #data8 bitwise modify masked low byte of bit-addressable direct word memory with immediate data 4 cmp rw, rw compare direct word gpr to direct gpr 2 cmp rw, [rw] compare indirect word memory to direct gpr 2 cmp rw, [rw +] compare indirect word memory to direct gpr and post-increment source pointer by 2 2 cmp rw, #data3 compare immediate word data to direct gpr 2 cmp reg, #data16 compare immediate word data to direct register 4 cmp reg, mem compare direct word memory to direct register 4 cmpb rb, rb compare direct byte gpr to direct gpr 2 cmpb rb, [rw] compare indirect byte memory to direct gpr 2 cmpb rb, [rw +] compare indirect byte memory to direct gpr and post-increment source pointer by 1 2 cmpb rb, #data3 compare immediate byte data to direct gpr 2 cmpb reg, #data8 compare immediate byte data to direct register 4 cmpb reg, mem compare direct byte memory to direct register 4 compare and loop control instructions cmpd1 rw, #data4 compare immediate word data to direct gpr and decrement gpr by 1 2 cmpd1 rw, #data16 compare immediate word data to direct gpr and decrement gpr by 1 4 instruction set summary (contd) mnemonic description bytes
sab 80c166w/83c166w semiconductor group 27 compare and loop control instructions (contd) cmpd1 rw, mem compare direct word memory to direct gpr and decrement gpr by 1 4 cmpd2 rw, #data4 compare immediate word data to direct gpr and decrement gpr by 2 2 cmpd2 rw, #data16 compare immediate word data to direct gpr and decrement gpr by 2 4 cmpd2 rw, mem compare direct word memory to direct gpr and decrement gpr by 2 4 cmpi1 rw, #data4 compare immediate word data to direct gpr and increment gpr by 1 2 cmpi1 rw, #data16 compare immediate word data to direct gpr and increment gpr by 1 4 cmpi1 rw, mem compare direct word memory to direct gpr and increment gpr by 1 4 cmpi2 rw, #data4 compare immediate word data to direct gpr and increment gpr by 2 2 cmpi2 rw, #data16 compare immediate word data to direct gpr and increment gpr by 2 4 cmpi2 rw, mem compare direct word memory to direct gpr and increment gpr by 2 4 prioritize instruction prior rw, rw determine number of shift cycles to normalize direct word gpr and store result in direct word gpr 2 shift and rotate instructions shl rw, rw shift left direct word gpr; number of shift cycles specified by direct gpr 2 shl rw, #data4 shift left direct word gpr; number of shift cycles specified by immediate data 2 shr rw, rw shift right direct word gpr; number of shift cycles specified by direct gpr 2 instruction set summary (contd) mnemonic description bytes
sab 80c166w/83c166w semiconductor group 28 shift and rotate instructions (contd) shr rw, #data4 shift right direct word gpr; number of shift cycles specified by immediate data 2 rol rw, rw rotate left direct word gpr; number of shift cycles specified by direct gpr 2 rol rw, #data4 rotate left direct word gpr; number of shift cycles specified by immediate data 2 ror rw, rw rotate right direct word gpr; number of shift cycles specified by direct gpr 2 ror rw, #data4 rotate right direct word gpr; number of shift cycles specified by immediate data 2 ashr rw, rw arithmetic (sign bit) shift right direct word gpr; number of shift cycles specified by direct gpr 2 ashr rw, #data4 arithmetic (sign bit) shift right direct word gpr; number of shift cycles specified by immediate data 2 data movement mov rw, rw move direct word gpr to direct gpr 2 mov rw, #data4 move immediate word data to direct gpr 2 mov reg, #data16 move immediate word data to direct register 4 mov rw, [rw] move indirect word memory to direct gpr 2 mov rw, [rw+] move indirect word memory to direct gpr and post-increment source pointer by 2 2 mov [rw], rw move direct word gpr to indirect memory 2 mov [-rw], rw pre-decrement destination pointer by 2 and move direct word gpr to indirect memory 2 mov [rw], [rw] move indirect word memory to indirect memory 2 mov [rw+], [rw] move indirect word memory to indirect memory and post-increment destination pointer by 2 2 mov [rw], [rw+] move indirect word memory to indirect memory and post-increment source pointer by 2 2 mov rw, [rw + #data16] move indirect word memory by base plus constant to direct gpr 4 mov [rw + #data16], rw move direct word gpr to indirect memory by base plus constant 4 instruction set summary (contd) mnemonic description bytes
sab 80c166w/83c166w semiconductor group 29 data movement (contd) mov [rw], mem move direct word memory to indirect memory 4 mov mem, [rw] move indirect word memory to direct memory 4 mov reg, mem move direct word memory to direct register 4 mov mem, reg move direct word register to direct memory 4 movb rb, rb move direct byte gpr to direct gpr 2 movb rb, #data4 move immediate byte data to direct gpr 2 movb reg, #data8 move immediate byte data to direct register 4 movb rb, [rw] move indirect byte memory to direct gpr 2 movb rb, [rw +] move indirect byte memory to direct gpr and post-increment source pointer by 1 2 movb [rw], rb move direct byte gpr to indirect memory 2 movb [-rw], rb pre-decrement destination pointer by 1 and move direct byte gpr to indirect memory 2 movb [rw], [rw] move indirect byte memory to indirect memory 2 movb [rw +], [rw] move indirect byte memory to indirect memory and post-increment destination pointer by 1 2 movb [rw], [rw +] move indirect byte memory to indirect memory and post-increment source pointer by 1 2 movb rb, [rw + #data16] move indirect byte memory by base plus constant to direct gpr 4 movb [rw + #data16], rb move direct byte gpr to indirect memory by base plus constant 4 movb [rw], mem move direct byte memory to indirect memory 4 movb mem, [rw] move indirect byte memory to direct memory 4 movb reg, mem move direct byte memory to direct register 4 movb mem, reg move direct byte register to direct memory 4 movbs rw, rb move direct byte gpr with sign extension to direct word gpr 2 movbs reg, mem move direct byte memory with sign extension to direct word register 4 movbs mem, reg move direct byte register with sign extension to direct word memory 4 instruction set summary (contd) mnemonic description bytes
sab 80c166w/83c166w semiconductor group 30 data movement (contd) movbz rw, rb move direct byte gpr with zero extension to direct word gpr 2 movbz reg, mem move direct byte memory with zero extension to direct word register 4 movbz mem, reg move direct byte register with zero extension to direct word memory 4 jump and call operations jmpa cc, caddr jump absolute if condition is met 4 jmpi cc, [rw] jump indirect if condition is met 2 jmpr cc, rel jump relative if condition is met 2 jmps seg, caddr jump absolute to a code segment 4 jb bitaddr, rel jump relative if direct bit is set 4 jbc bitaddr, rel jump relative and clear bit if direct bit is set 4 jnb bitaddr, rel jump relative if direct bit is not set 4 jnbs bitaddr, rel jump relative and set bit if direct bit is not set 4 calla cc, caddr call absolute subroutine if condition is met 4 calli cc, [rw] call indirect subroutine if condition is met 2 callr rel call relative subroutine 2 calls seg, caddr call absolute subroutine in any code segment 4 pcall reg, caddr push direct word register onto system stack and call absolute subroutine 4 trap #trap7 call interrupt service routine via immediate trap number 2 system stack operations pop reg pop direct word register from system stack 2 push reg push direct word register onto system stack 2 scxt reg, #data16 push direct word register onto system stack und update register with immediate data 4 scxt reg, mem push direct word register onto system stack und update register with direct memory 4 instruction set summary (contd) mnemonic description bytes
sab 80c166w/83c166w semiconductor group 31 return operations ret return from intra-segment subroutine 2 rets return from inter-segment subroutine 2 retp reg return from intra-segment subroutine and pop direct word register from system stack 2 reti return from interrupt service subroutine 2 system control srst software reset 4 idle enter idle mode 4 pwrdn enter power down mode (supposes nmi-pin being low) 4 srvwdt service watchdog timer 4 diswdt disable watchdog timer 4 einit signify end-of-initialization on rstout-pin 4 miscellaneous nop null operation 2 instruction set summary (contd) mnemonic description bytes
sab 80c166w/83c166w semiconductor group 32 instruction set summary notes data addressing modes rw: C word gpr (r0, r1, , r15) rb: C byte gpr (rl0, rh0, , rl7, rh7) reg: C sfr or gpr (in case of a byte operation on an sfr, only the low byte can be accessed via reg) mem: C direct word or byte memory location []: C indirect word or byte memory location (any word gpr can be used as indirect address pointer, except for the arithmetic, logical and compare instructions, where only r0 to r3 are allowed) bitaddr: C direct bit in the bit-addressable memory area bitoff: C direct word in the bit-addressable memory area #data: C immediate constant (the number of significant bits which can be specified by the user is represented by the respective appendix x) #mask8: C immediate 8-bit mask used for bit-field modifications multiply and divide operations the mdl and mdh registers are implicit source and/or destination operands of the multiply and divide instructions. branch target addressing modes caddr: C direct 16-bit jump target address (updates the instruction pointer) seg: C direct 2-bit segment address (updates the code segment pointer) rel: C signed 8-bit jump target word offset address relative to the instruction pointer of the following instruction #trap7: C immediate 7-bit trap or interrupt number.
sab 80c166w/83c166w semiconductor group 33 branch condition codes cc: symbolically specifiable condition codes cc_uc C unconditional cc_z C zero cc_nz C not zero cc_v C overflow cc_nv C no overflow cc_n C negative cc_nn C not negative cc_c C carry cc_nc C no carry cc_eq C equal cc_ne C not equal cc_ult C unsigned less than cc_ule C unsigned less than or equal cc_uge C unsigned greater than or equal cc_ugt C unsigned greater than cc_sle C signed less than or equal cc_sge C signed greater than or equal cc_sgt C signed greater than cc_net C not equal and not end-of-table instruction op codes in hexadecimal order the table on the following pages lists the sab 80c166w/83c166ws instruction opcodes in a hexadecimal order. this table allows to find the instruction which is associated with a given opcode.
semiconductor group 34 sab 80c166w/83c166w hex- code num- ber of bytes mnemonic operands 00 2 add rw, rw 01 2 addb rb, rb 02 4 add reg, mem 03 4 addb reg, mem 04 4 add mem, reg 05 4 addb mem, reg 06 4 add reg, #data16 07 4 addb reg, #data8 08 2 add rw, [rw +] or rw, [rw] or rw, #data3 1) 09 2 addb rb, [rw +] or rb, [rw] or rb, #data3 1) 0a 4 bfldl bitoff, #mask8, #data8 0b 2 mul rw, rw 0c 2 rol rw, rw 0d 2 jmpr cc_uc, rel 0e 2 bclr bitoff.0 0f 2 bset bitoff.0 10 2 addc rw, rw 11 2 addcb rb, rb 12 4 addc reg, mem 13 4 addcb reg, mem 14 4 addc mem, reg 15 4 addcb mem, reg 16 4 addc reg, #data16 17 4 addcb reg, #data8 18 2 addc rw, [rw +] or rw, [rw] or rw, #data3 1) 19 2 addcb rb, [rw +] or rb, [rw] or rb, #data3 1) 1a 4 bfldh bitoff, #mask8, #data8 1b 2 mulu rw, rw 1c 2 rol rw, #data4 1d 2 jmpr cc_net, rel 1e 2 bclr bitoff.1 1f 2 bset bitoff.1 20 2 sub rw, rw 21 2 subb rb, rb 22 4 sub reg, mem 23 4 subb reg, mem 24 4 sub mem, reg 25 4 subb mem, reg 26 4 sub reg, #data6 27 4 subb reg, #data8 28 2 sub rw, [rw +] or rw, [rw] or rw, #data3 1) 29 2 subb rb, [rw +] or rb, [rw] or rb, #data3 1) 2a 4 bcmp bitaddr, bitaddr 2b 2 prior rw, rw 2c 2 ror rw, rw 2d 2 jmpr cc_eq, rel or cc_z, rel 2e 2 bclr bitoff.2 2f 2 bset bitoff.2 30 2 subc rw, rw 31 2 subcb rb, rb 32 4 subc reg, mem hex- code num- ber of bytes mnemonic operands
semiconductor group 35 sab 80c166w/83c166w 33 4 subcb reg, mem 34 4 subc mem, reg 35 4 subcb mem, reg 36 4 subc reg, #data16 37 4 subcb reg, #data8 38 2 subc rw, [rw +] or rw, [rw] or rw, #data3 1) 39 2 subcb rb, [rw +] or rb, [rw] or rb, #data3 1) 3a 4 bmovn bitaddr, bitaddr 3b - - - 3c 2 ror rw, #data4 3d 2 jmpr cc_ne, rel or cc_nz, rel 3e 2 bclr bitoff.3 3f 2 bset bitoff.3 40 2 cmp rw, rw 41 2 cmpb rb, rb 42 4 cmp reg, mem 43 4 cmpb reg, mem 44 - - - 45 - - - 46 4 cmp reg, #data16 47 4 cmpb reg, #data8 48 2 cmp rw, [rw +] or rw, [rw] or rw, #data3 1) 49 2 cmpb rb, [rw +] or rb, [rw] or rb, #data3 1) 4a 4 bmov bitaddr, bitaddr 4b 2 div rw hex- code num- ber of bytes mnemonic operands 4c 2 shl rw, rw 4d 2 jmpr cc_v, rel 4e 2 bclr bitoff.4 4f 2 bset bitoff.4 50 2 xor rw, rw 51 2 xorb rb, rb 52 4 xor reg, mem 53 4 xorb reg, mem 54 4 xor mem, reg 55 4 xorb mem, reg 56 4 xor reg, #data16 57 4 xorb reg, #data8 58 2 xor rw, [rw +] or rw, [rw] or rw, #data3 1) 59 2 xorb rb, [rw +] or rb, [rw] or rb, #data3 1) 5a 4 bor bitaddr, bitaddr 5b 2 divu rw 5c 2 shl rw, #data4 5d 2 jmpr cc_nv, rel 5e 2 bclr bitoff.5 5f 2 bset bitoff.5 60 2 and rw, rw 61 2 andb rb, rb 62 4 and reg, mem 63 4 andb reg, mem 64 4 and mem, reg 65 4 andb mem, reg 66 4 and reg, #data16 67 4 andb reg, #data8 hex- code num- ber of bytes mnemonic operands
semiconductor group 36 sab 80c166w/83c166w 68 2 and rw, [rw +] or rw, [rw] or rw, #data3 1) 69 2 andb rb, [rw +] or rb, [rw] or rb, #data3 1) 6a 4 band bitaddr, bitaddr 6b 2 divl rw 6c 2 shr rw, rw 6d 2 jmpr cc_n, rel 6e 2 bclr bitoff.6 6f 2 bset bitoff.6 70 2 or rw, rw 71 2 orb rb, rb 72 4 or reg, mem 73 4 orb reg, mem 74 4 or mem, reg 75 4 orb mem, reg 76 4 or reg, #data16 77 4 orb reg, #data8 78 2 or rw, [rw +] or rw, [rw] or rw, #data3 1) 79 2 orb rb, [rw +] or rb, [rw] or rb, #data3 1) 7a 4 bxor bitaddr, bitaddr 7b 2 divlu rw 7c 2 shr rw, #data4 7d 2 jmpr cc_nn, rel 7e 2 bclr bitoff.7 7f 2 bset bitoff.7 80 2 cmpi1 rw, #data4 81 2 neg rw hex- code num- ber of bytes mnemonic operands 82 4 cmpi1 rw, mem 83 - - - 84 4 mov [rw], mem 85 - - - 86 4 cmpi1 rw, #data16 87 4 idle 88 2 mov [-rw], rw 89 2 movb [-rw], rb 8a 4 jb bitaddr, rel 8b - - - 8c - - - 8d 2 jmpr cc_c, rel or cc_ult, rel 8e 2 bclr bitoff.8 8f 2 bset bitoff.8 90 2 cmpi2 rw, #data4 91 2 cpl rw 92 4 cmpi2 rw, mem 93 - - - 94 4 mov mem, [rw] 95 - - - 96 4 cmpi2 rw, #data16 97 4 pwrdn 98 2 mov rw, [rw+] 99 2 movb rb, [rw+] 9a 4 jnb bitaddr, rel 9b 2 trap #trap7 9c 2 jmpi cc, [rw] 9d 2 jmpr cc_nc, rel or cc_uge, rel 9e 2 bclr bitoff.9 9f 2 bset bitoff.9 a0 2 cmpd1 rw, #data4 hex- code num- ber of bytes mnemonic operands
semiconductor group 37 sab 80c166w/83c166w a1 2 negb rb a2 4 cmpd1 rw, mem a3 - - - a4 4 movb [rw], mem a5 4 diswdt a6 4 cmpd1 rw, #data16 a7 4 srvwdt a8 2 mov rw, [rw] a9 2 movb rb, [rw] aa 4 jbc bitaddr, rel ab 2 calli cc, [rw] ac 2 ashr rw, rw ad 2 jmpr cc_sgt, rel ae 2 bclr bitoff.10 af 2 bset bitoff.10 b0 2 cmpd2 rw, #data4 b1 2 cplb rb b2 4 cmpd2 rw, mem b3 - - - b4 4 movb mem, [rw] b5 4 einit b6 4 cmpd2 rw, #data16 b7 4 srst b8 2 mov [rw], rw b9 2 movb [rw], rb ba 4 jnbs bitaddr, rel bb 2 callr rel bc 2 ashr rw, #data4 bd 2 jmpr cc_sle, rel be 2 bclr bitoff.11 bf 2 bset bitoff.11 c0 2 movbz rw, rb hex- code num- ber of bytes mnemonic operands c1 - - - c2 4 movbz reg, mem c3 - - - c4 4 mov [rw + #data16], rw c5 4 movbz mem, reg c6 4 scxt reg, #data16 c7 - - - c8 2 mov [rw], [rw] c9 2 movb [rw], [rw] ca 4 calla cc, addr cb 2 ret cc 2 nop cd 2 jmpr cc_slt, rel ce 2 bclr bitoff.12 cf 2 bset bitoff.12 d0 2 movbs rw, rb d1 - - - d2 4 movbs reg, mem d3 - - - d4 4 mov reg, mem d5 4 movbs mem, reg d6 4 scxt reg, mem d7 - - - d8 2 mov [rw+], [rw] d9 2 movb [rw+], [rw] da 4 calls seg, caddr db 2 rets dc - - - dd 2 jmpr cc_sge, rel de 2 bclr bitoff.13 df 2 bset bitoff.13 hex- code num- ber of bytes mnemonic operands
semiconductor group 38 sab 80c166w/83c166w e0 2 mov rw, #data4 e1 2 movb rb, #data4 e2 4 pcall reg, caddr e3 - - - e4 4 movb [rw + #data16], rb e5 - - - e6 4 mov reg, #data16 e7 4 movb reg, #data8 e8 2 mov [rw], [rw+] e9 2 movb [rw], [rw+] ea 4 jmpa cc, caddr eb 2 retp reg ec 2 push reg ed 2 jmpr cc_ugt, rel ee 2 bclr bitoff.14 ef 2 bset bitoff.14 f0 2 mov rw, rw f1 2 movb rb, rb f2 4 mov reg, mem f3 4 movb reg, mem f4 4 movb rb, [rw + #data16] f5 - - - f6 4 mov mem, reg f7 4 movb mem, reg f8 - - - f9 - - - fa 4 jmps seg, caddr fb 2 reti fc 2 pop reg fd 2 jmpr cc_ule, rel hex- code num- ber of bytes mnemonic operands fe 2 bclr bitoff.15 ff 2 bset bitoff.15 hex- code num- ber of bytes mnemonic operands
sab 80c166w/83c166w semiconductor group 39 notes 1) these instructions are encoded by means of additional bits in the operand field of the instruction x0 h C x7 h : rw, #data3 or rb, #data3 x8 h C xb h : rw, [rw] or rb, [rw] xc h C xf h : rw, [rw +] or rb, [rw +] for these instructions only the lowest four gprs, r0 to r3, can be used as indirect address pointers. notes on the jmpr instructions the condition code to be tested for the jmpr instructions is specified by the opcode. two mnemonic representation alternatives exist for some of the condition codes. notes on the bclr and bset instructions the position of the bit to be set or to be cleared is specified by the opcode. the operand bitoff.n (n = 0 to 15) refers to a particular bit within a bit-addressable word. notes on the undefined opcodes a hardware trap occurs when one of the undefined opcodes signified by ---- is decoded by the cpu.
sab 80c166w/83c166w semiconductor group 40 special function registers overview the following table lists all sfrs which are implemented in the sab 80c166w/83c166w in alphabetical order. bit-addressable sfrs are marked with the letter b in column name. an sfr can be specified via its individual mnemonic name. depending on the selected addressing mode, an sfr can be accessed via its physical address (using the data page pointers), or via its short 8-bit address (without using the data page pointers). special function registers overview name physical address 8-bit address description reset value adcic b ff98 h cc h a/d converter end of conversion interrupt control register 0000 h adcon b ffa0 h d0 h a/d converter control register 0000 h addat fea0 h 50 h a/d converter result register 0000 h addrsel1 fe18 h 0c h address select register 1 0000 h adeic b ff9a h cd h a/d converter overrun error interrupt control register 0000 h buscon1 b ff14 h 8a h bus configuration register 1 0000 h caprel fe4a h 25 h gpt2 capture/reload register 0000 h cc0 fe80 h 40 h capcom register 0 0000 h cc0ic b ff78 h bc h capcom register 0 interrupt control register 0000 h cc1 fe82 h 41 h capcom register 1 0000 h cc1ic b ff7a h bd h capcom register 1 interrupt control register 0000 h cc2 fe84 h 42 h capcom register 2 0000 h cc2ic b ff7c h be h capcom register 2 interrupt control register 0000 h cc3 fe86 h 43 h capcom register 3 0000 h cc3ic b ff7e h bf h capcom register 3 interrupt control register 0000 h cc4 fe88 h 44 h capcom register 4 0000 h cc4ic b ff80 h c0 h capcom register 4 interrupt control register 0000 h cc5 fe8a h 45 h capcom register 5 0000 h cc5ic b ff82 h c1 h capcom register 5 interrupt control register 0000 h cc6 fe8c h 46 h capcom register 6 0000 h cc6ic b ff84 h c2 h capcom register 6 interrupt control register 0000 h cc7 fe8e h 47 h capcom register 7 0000 h
sab 80c166w/83c166w semiconductor group 41 cc7ic b ff86 h c3 h capcom register 7 interrupt control register 0000 h cc8 fe90 h 48 h capcom register 8 0000 h cc8ic b ff88 h c4 h capcom register 8 interrupt control register 0000 h cc9 fe92 h 49 h capcom register 9 0000 h cc9ic b ff8a h c5 h capcom register 9 interrupt control register 0000 h cc10 fe94 h 4a h capcom register 10 0000 h cc10ic b ff8c h c6 h capcom register 10 interrupt control register 0000 h cc11 fe96 h 4b h capcom register 11 0000 h cc11ic b ff8e h c7 h capcom register 11 interrupt control register 0000 h cc12 fe98 h 4c h capcom register 12 0000 h cc12ic b ff90 h c8 h capcom register 12 interrupt control register 0000 h cc13 fe9a h 4d h capcom register 13 0000 h cc13ic b ff92 h c9 h capcom register 13 interrupt control register 0000 h cc14 fe9c h 4e h capcom register 14 0000 h cc14ic b ff94 h ca h capcom register 14 interrupt control register 0000 h cc15 fe9e h 4f h capcom register 15 0000 h cc15ic b ff96 h cb h capcom register 15 interrupt control register 0000 h ccm0 b ff52 h a9 h capcom mode control register 0 0000 h ccm1 b ff54 h aa h capcom mode control register 1 0000 h ccm2 b ff56 h ab h capcom mode control register 2 0000 h ccm3 b ff58 h ac h capcom mode control register 3 0000 h cp fe10 h 08 h cpu context pointer register fc00 h cric b ff6a h b5 h gpt2 caprel interrupt control register 0000 h csp fe08 h 04 h cpu code segment pointer register (2 bits, read only) 0000 h dp0 b ff02 h 81 h port 0 direction control register 0000 h dp1 b ff06 h 83 h port 1 direction control register 0000 h dp2 b ffc2 h e1 h port 2 direction control register 0000 h dp3 b ffc6 h e3 h port 3 direction control register 0000 h dp4 b ff0a h 85 h port 4 direction control register (2 bits) 00 h special function registers overview (contd) name physical address 8-bit address description reset value
sab 80c166w/83c166w semiconductor group 42 dpp0 fe00 h 00 h cpu data page pointer 0 register (4 bits) 0000 h dpp1 fe02 h 01 h cpu data page pointer 1 register (4 bits) 0001 h dpp2 fe04 h 02 h cpu data page pointer 2 register (4 bits) 0002 h dpp3 fe06 h 03 h cpu data page pointer 3 register (4 bits) 0003 h mdc b ff0e h 87 h cpu multiply / divide control register 0000 h mdh fe0c h 06 h cpu multiply / divide register C high word 0000 h mdl fe0e h 07 h cpu multiply / divide register C low word 0000 h ones ff1e h 8f h constant value 1s register (read only) ffff h p0 b ff00 h 80 h port 0 register 0000 h p1 b ff04 h 82 h port 1 register 0000 h p2 b ffc0 h e0 h port 2 register 0000 h p3 b ffc4 h e2 h port 3 register 0000 h p4 b ffc8 h e4 h port 4 register (2 bits) 00 h p5 b ffa2 h d1 h port 5 register (read only) xxxx h pecc0 fec0 h 60 h pec channel 0 control register 0000 h pecc1 fec2 h 61 h pec channel 1 control register 0000 h pecc2 fec4 h 62 h pec channel 2 control register 0000 h pecc3 fec6 h 63 h pec channel 3 control register 0000 h pecc4 fec8 h 64 h pec channel 4 control register 0000 h pecc5 feca h 65 h pec channel 5 control register 0000 h pecc6 fecc h 66 h pec channel 6 control register 0000 h pecc7 fece h 67 h pec channel 7 control register 0000 h psw b ff10 h 88 h cpu program status word 0000 h s0bg feb4 h 5a h serial channel 0 baud rate generator reload register 0000 h s0con b ffb0 h d8 h serial channel 0 control register 0000 h s0eic b ff70 h b8 h serial channel 0 error interrupt control register 0000 h s0rbuf feb2 h 59 h serial channel 0 receive buffer register (read only) xx h special function registers overview (contd) name physical address 8-bit address description reset value
sab 80c166w/83c166w semiconductor group 43 s0ric b ff6e h b7 h serial channel 0 receive interrupt control register 0000 h s0tbuf feb0 h 58 h serial channel 0 transmit buffer register (write only) 00 h s0tic b ff6c h b6 h serial channel 0 transmit interrupt control register 0000 h s1bg febc h 5e h serial channel 1 baud rate generator reload register 0000 h s1con b ffb8 h dc h serial channel 1 control register 0000 h s1eic b ff76 h bb h serial channel 1 error interrupt control register 0000 h s1rbuf feba h 5d h serial channel 1 receive buffer register (read only) xx h s1ric b ff74 h ba h serial channel 1 receive interrupt control register 0000 h s1tbuf feb8 h 5c h serial channel 1 transmit buffer register (write only) 00 h s1tic b ff72 h b9 h serial channel 1 transmit interrupt control register 0000 h sp fe12 h 09 h cpu system stack pointer register fc00 h stkov fe14 h 0a h cpu stack overflow pointer register fa00 h stkun fe16 h 0b h cpu stack underflow pointer register fc00 h syscon b ff0c h 86 h cpu system configuration register 0xx0 h *) t0 fe50 h 28 h capcom timer 0 register 0000 h t01con b ff50 h a8 h capcom timer 0 and timer 1 control register 0000 h t0ic b ff9c h ce h capcom timer 0 interrupt control register 0000 h t0rel fe54 h 2a h capcom timer 0 reload register 0000 h t1 fe52 h 29 h capcom timer 1 register 0000 h t1ic b ff9e h cf h capcom timer 1 interrupt control register 0000 h t1rel fe56 h 2b h capcom timer 1 reload register 0000 h t2 fe40 h 20 h gpt1 timer 2 register 0000 h t2con b ff40 h a0 h gpt1 timer 2 control register 0000 h t2ic b ff60 h b0 h gpt1 timer 2 interrupt control register 0000 h special function registers overview (contd) name physical address 8-bit address description reset value
sab 80c166w/83c166w semiconductor group 44 *) the system configuration is selected during reset. t3 fe42 h 21 h gpt1 timer 3 register 0000 h t3con b ff42 h a1 h gpt1 timer 3 control register 0000 h t3ic b ff62 h b1 h gpt1 timer 3 interrupt control register 0000 h t4 fe44 h 22 h gpt1 timer 4 register 0000 h t4con b ff44 h a2 h gpt1 timer 4 control register 0000 h t4ic b ff64 h b2 h gpt1 timer 4 interrupt control register 0000 h t5 fe46 h 23 h gpt2 timer 5 register 0000 h t5con b ff46 h a3 h gpt2 timer 5 control register 0000 h t5ic b ff66 h b3 h gpt2 timer 5 interrupt control register 0000 h t6 fe48 h 24 h gpt2 timer 6 register 0000 h t6con b ff48 h a4 h gpt2 timer 6 control register 0000 h t6ic b ff68 h b4 h gpt2 timer 6 interrupt control register 0000 h tfr b ffac h d6 h trap flag register 0000 h wdt feae h 57 h watchdog timer register (read only) 0000 h wdtcon ffae h d7 h watchdog timer control register 0000 h zeros b ff1c h 8e h constant value 0s register (read only) 0000 h special function registers overview (contd) name physical address 8-bit address description reset value
sab 80c166w/83c166w semiconductor group 45 absolute maximum ratings ambient temperature under bias ( t a ): sab 83c166w-5m, sab 80c166w-m ........................................................................... 0 to + 70 ?c sab 83c166w-5m-t3, sab 80c166w-m-t3 ........................................................... C 40 to + 85 ?c sab 83c166w-5m-t4, sab 80c166w-m-t4 .........................................................C 40 to + 110 ?c storage temperature ( t stg ) ....................................................................................... C 65 to + 150 ?c voltage on v cc pins with respect to ground ( v ss ) ..................................................... C 0.5 to + 6.5 v voltage on any pin with respect to ground ( v ss ) .................................................C 0.5 to v cc + 0.5 v input current on any pin during overload condition .................................................. C 10 to + 10 ma absolute sum of all input currents during overload condition ............................................. |100 ma| power dissipation........................................................................................................................ 1 w note: stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. during overload conditions ( v in > v cc or v in < v ss ) the voltage on pins with respect to ground ( v ss ) must not exceed the values defined by the absolute maximum ratings. parameter interpretation the parameters listed in the following partly represent the characteristics of the sab 80c166w/ 83c166w and partly its demands on the system. to aid in interpreting the parameters right, when evaluating them for a design, they are marked in column symbol: cc ( c ontroller c haracteristics): the logic of the sab 80c166w/83c166w will provide signals with the respective timing characteristics. sr ( s ystem r equirement): the external system must provide signals with the respective timing characteristics to the sab 80c166w/83c166w.
sab 80c166w/83c166w semiconductor group 46 dc characteristics v cc = 5 v 10 %; v ss = 0 v t a = 0 to + 70 ?c for sab 83c166w-5m, sab 80c166w/83c166w-m t a = C 40 to + 85 ?c for sab 83c166w-5m-t3, sab 80c166w/83c166w-m-t3 t a = C 40 to + 110 ?c for sab 83c166w-5m-t4, sab 80c166w/83c166w-m-t4 parameter symbol limit values unit test condition min. max. input low voltage v il sr C 0.5 0.2 v cc C 0.1 vC input high voltage (all except rstin and xtal1) v ih sr 0.2 v cc + 0.9 v cc + 0.5 v C input high voltage rstin v ih1 sr 0.6 v cc v cc + 0.5 v C input high voltage xtal1 v ih2 sr 0.7 v cc v cc + 0.5 v C output low voltage (port 0, port 1, port 4, ale, rd, wr, bhe, clkout, rstout) v ol cc C 0.45 v i ol = 2.4 ma output low voltage (all other outputs) v ol1 cc C 0.45 v i ol1 = 1.6 ma output high voltage (port 0, port 1, port 4, ale, rd, wr, bhe, clkout, rstout) v oh cc 0.9 v cc 2.4 Cv i oh = C 500 m a i oh = C 2.4 ma output high voltage (all other outputs) v oh1 cc 0.9 v cc 2.4 Cv v i oh = C 250 m a i oh = C 1.6 ma input leakage current 1) i oz cc C 1 m a 0 v < v in < v cc rstin pullup resistor r rst cc 50 150 k w C read inactive current 5) i rh 3) C C 40 m a v out = v ohmin read active current 5) i rl 4) C 500 C m a v out = v olmax ale inactive current 5) i alel 3) C 150 m a v out = v olmax ale active current 5) i aleh 4) 2100 C m a v out = v ohmin xtal1 input current i il cc C 20 m a 0 v < v in < v cc pin capacitance 6) (digital inputs/outputs) c io cc C 10 pf f = 1 mhz t a = 25 ?c power supply current i cc C 50 + 5 x f cpu ma reset active f cpu in [mhz] 7) idle mode supply current i id C 30 + 1.5 x f cpu ma f cpu in [mhz] 7) power-down mode supply current i pd C50 m a v cc = 5.5 v 8)
sab 80c166w/83c166w semiconductor group 47 notes 1) this specification does not apply to the analog input (port 5.x) which is currently converted. 3) the maximum current may be drawn while the respective signal line remains inactive. 4) the minimum current must be drawn in order to drive the respective signal line active. 5) this specification is only valid during reset, or during hold-mode. 6) not 100% tested, guaranteed by design characterization. 7) the supply current is a function of the operating frequency. this dependency is illustrated in the figure below. these parameters are tested at 20 mhz cpu clock with all outputs open. 8) this parameter is tested including leakage currents. all inputs (including pins configured as inputs) at 0 v to 0.1 v or at v cc C 0.1 v to v cc , v ref = 0 v, all outputs (including pins configured as outputs) disconnected. a voltage of v cc 3 2.5 v is sufficient to retain the content of the internal ram during power down mode. figure 8 supply/idle current as a function of operating frequency
sab 80c166w/83c166w semiconductor group 48 a/d converter characteristics v cc = 5 v 10 %; v ss = 0 v t a = 0 to + 70 ?c for sab 83c166w-5m, sab 80c166w/83c166w-m t a = C 40 to + 85 ?c for sab 83c166w-5m-t3, sab 80c166w/83c166w-m-t3 t a = C 40 to + 110 ?c for sab 83c166w-5m-t4, sab 80c166w/83c166w-m-t4 4.0 v v aref v cc + 0.1 v; v ss C 0.1 v v agnd v ss + 0.2 v notes 1) v ain may exceed v agnd or v aref up to the absolute maximum ratings. however, the conversion result in these cases will be x000 h or x3ff h , respectively. 2) during the sample time the input capacitance c i can be charged/discharged by the external source. the internal resistance of the analog source must allow the capacitors to reach their final voltage level within t s . after the end of the sample time t s , changes of the analog input voltage have no effect on the conversion result. the value for the sample clock is t sc = t cl x 32. 3) this parameter includes the sample time t s , the time for determining the digital result and the time to load the result register with the conversion result. the value for the conversion clock is t cc = t cl x 32. 4) during the conversion the adcs capacitance must be repeatedly charged or discharged. the internal resistance of the respective current source must allow the capacitors to reach their final voltage level within the indicated time. the maximum internal resistance results from the cpu clock period. 5) this parameter depends on the adc control logic. it is not a real maximum value, but rather a fixum. parameter symbol limit values unit test condition min. max. analog input voltage range v ain sr v agnd v aref v 1) sample time t s cc C 2 t sc 2) 5) conversion time t c cc C 10 t cc + t s + 4tcl 3) 5) total unadjusted error tue cc C 2 lsb v aref = v cc v agnd = v ss internal resistance of reference voltage source r aref cc C t cc / 250 - 0.25 k w t cc in [ns] 4) internal resistance of analog source r asrc cc C t s / 500 - 0.25 k w t s in [ns] 4)
sab 80c166w/83c166w semiconductor group 49 testing waveforms figure 9 input output waveforms figure 10 float waveforms memory cycle variables the timing tables below use three variables which are derived from registers syscon and buscon1 and represent the special characteristics of the programmed memory cycle. the following table describes, how these variables are to be computed. description symbol values ale extension t a t cl x memory cycle time waitstates t c 2t cl x (15 - ) memory tristate time t f 2t cl x (1 - ) ac inputs during testing are driven at 2.4 v for a logic 1 and 0.4 v for a logic 0. timing measurements are made at v ih min for a logic 1 and v il max for a logic 0. for timing purposes a port pin is no longer floating when a 100 mv change from load voltage occurs, but begins to float when a 100 mv change from the loaded v oh / v ol level occurs ( i oh / i ol = 20 ma).
sab 80c166w/83c166w semiconductor group 50 ac characteristics external clock drive xtal1 v cc = 5 v 10 %; v ss = 0 v t a = 0 to + 70 ?c for sab 83c166w-5m, sab 80c166w/83c166w-m t a = C 40 to + 85 ?c for sab 83c166w-5m-t3, sab 80c166w/83c166w-m-t3 t a = C 40 to + 110 ?c for sab 83c166w-5m-t4, sab 80c166w/83c166w-m-t4 note: in order to run the sab 80c166w/83c166w at a cpu clock of 20 mhz the duty cycle of the oscillator clock must be 0.5, ie. the relation between the oscillator high and low phases must be 1:1. so the variation of the duty cycle of the oscillator clock limits the maximum operating speed of the device. the 16 mhz values in the tables are given as an example for a typical duty cycle variation of the oscillator clock from 0.4 to 0.6. figure 11 external clock drive xtal1 parameter symbol cpu clock = 16 mhz duty cycle 0.4 to 0.6 variable cpu clock 1/t clp = 1 to 20 mhz unit min. max. min. max. oscillator period t clp sr 62.5 62.5 50 1000 ns high time t clh sr 25 C 25 t clp - t cll ns low time t cll sr 25 C 25 t clp - t clh ns rise time t r sr C 10 C 10 ns fall time t f sr C 10 C 10 ns oscillator duty cycle dc sr 0.4 0.6 25 / t clp 1 - 25 / t clp clock cycle t cl 25 37.5 t clp x dc min t clp x dc max ns
sab 80c166w/83c166w semiconductor group 51 ac characteristics (contd) multiplexed bus v cc = 5 v 10 %; v ss = 0 v t a = 0 to + 70 ?c for sab 83c166w-5m, sab 80c166w/83c166w-m t a = C 40 to + 85 ?c for sab 83c166w-5m-t3, sab 80c166w/83c166w-m-t3 t a = C 40 to +110 ?c for sab 83c166w-5m-t4, sab 80c166w/83c166w-m-t4 c l (for port 0, port 1, port 4, ale, rd, wr, bhe, clkout) = 100 pf ale cycle time = 6 t cl (150 ns at 20-mhz cpu clock) parameter symbol cpu clock = 16 mhz duty cycle 0.4 to 0.6 variable cpu clock 1/t clp = 1 to 20 mhz unit min. max. min. max. ale high time t 5 cc 15 + t a Ct cl min - 10 + t a Cns address setup to ale t 6 cc 10 + t a Ct clmi n - 15 + t a Cns address hold after ale t 7 cc 15 + t a Ct clm in - 10 + t a Cns ale falling edge to rd, wr (with rw-delay) t 8 cc 15 + t a Ct clm in - 10 + t a Cns ale falling edge to rd, wr (no rw-delay) t 9 cc -10 + t a C -10 + t a Cns address float after rd, wr (with rw-delay) t 10 ccC5C5ns address float after rd, wr (no rw-delay) t 11 cc C 42.5 C t cl max + 5 ns rd, wr low time (with rw-delay) t 12 cc 52.5 + t c Ct clp - 10 + t c Cns rd wr low time (no rw-delay) t 13 cc 77.5 + t c Ct clp + t cl min - 10 + t c Cns rd to valid data in (with rw-delay) t 14 sr C 47.5 + t c Ct clp - 20 + t c ns rd to valid data in (no rw-delay) t 15 sr C 72.5 + t c Ct clp + t clmin - 20 + t c ns ale low to valid data in t 16 sr C 72.5 + t a + t c Ct clp + t cl min - 20 + t c ns address to valid data in t 17 sr C 100 +2 t a + t c C2t clp - 25 +2 t a + t c ns data hold after rd rising edge t 18 sr0C0Cns
sab 80c166w/83c166w semiconductor group 52 data float after rd t 19 sr C 47.5 + t f Ct clp - 15 + t f ns data valid to wr t 22 cc 47.5 + t c Ct clp - 15 + t c Cns data hold after wr t 23 cc 47.5 + t f Ct clp - 15 + t f Cns ale rising edge after rd, wr t 25 cc 47.5 + t f Ct clp - 15 + t f Cns address hold after rd, wr t 27 cc 47.5 + t f Ct clp - 15 + t f Cns parameter symbol cpu clock = 16 mhz duty cycle 0.4 to 0.6 variable cpu clock 1/t clp = 1 to 20 mhz unit min. max. min. max.
sab 80c166w/83c166w semiconductor group 53 figure 12-1 external memory cycle: multiplexed bus, with read/write delay, normal ale bus read cycle rd data in data out address address t 10 address ale a17-a16 (a15-a8) bhe bus write cycle wr t 5 t 16 t 17 t 6 t 7 t 25 t 27 t 18 t 19 t 14 t 12 t 10 t 22 t 23 t 12 t 8 t 8
sab 80c166w/83c166w semiconductor group 54 figure 12-2 external memory cycle: multiplexed bus, with read/write delay, extended ale data out address data in address t 10 address ale a17-a16 (a15-a8) bhe bus read cycle rd bus write cycle wr t 5 t 16 t 17 t 6 t 7 t 25 t 27 t 18 t 19 t 14 t 12 t 10 t 22 t 23 t 12 t 8 t 8
sab 80c166w/83c166w semiconductor group 55 figure 12-3 external memory cycle: multiplexed bus, no read/write delay, normal ale data out address address data in address ale a17-a16 (a15-a8) bhe bus read cycle rd bus write cycle wr t 5 t 16 t 17 t 6 t 7 t 25 t 27 t 18 t 19 t 15 t 13 t 22 t 23 t 13 t 9 t 9 t 11 t 11
sab 80c166w/83c166w semiconductor group 56 figure 12-4 external memory cycle: multiplexed bus, no read/write delay, extended ale data out address data in address address ale a17-a16 (a15-a8) bhe bus read cycle rd bus write cycle wr t 5 t 16 t 17 t 6 t 7 t 25 t 27 t 18 t 19 t 15 t 13 t 22 t 23 t 13 t 9 t 9 t 11 t 11
sab 80c166w/83c166w semiconductor group 57 ac characteristics (contd) demultiplexed bus v cc = 5 v 10 %; v ss = 0 v t a = 0 to + 70 ?c for sab 83c166w-5m, sab 80c166w/83c166w-m t a = C 40 to + 85 ?c for sab 83c166w-5m-t3, sab 80c166w/83c166w-m-t3 t a = C 40 to + 110 ?c for sab 83c166w-5m-t4, sab 80c166w/83c166w-m-t4 c l (for port 0, port 1, port 4, ale, rd, wr, bhe, clkout) = 100 pf ale cycle time = 4 tcl (100 ns at 20-mhz cpu clock) parameter symbol cpu clock = 16 mhz duty cycle 0.4 to 0.6 variable cpu clock 1/t clp = 1 to 20 mhz unit min. max. min. max. ale high time t 5 cc 15 + t a Ct clmin - 10 + t a Cns address setup to ale t 6 cc 10 + t a Ct clmin - 15 + t a Cns ale falling edge to rd, wr (with rw-delay) t 8 cc 15 + t a Ct clmin - 10 + t a Cns ale falling edge to rd, wr (no rw-delay) t 9 cc -10 + t a C -10 + t a Cns rd, wr low time (with rw-delay) t 12 cc 52.5 + t c Ct clp - 10 + t c Cns rd, wr low time (no rw-delay) t 13 cc 77.5 + t c Ct clp +t clmin - 10 + t c Cns rd to valid data in (with rw-delay) t 14 sr C 47.5 + t c Ct clp - 20 + t c ns rd to valid data in (no rw-delay) t 15 sr C 72.5 + t c Ct clp +t clmin - 20 + t c ns ale low to valid data in t 16 sr C 72.5 + t a + t c Ct clp +t clmin - 20 + t a + t c ns address to valid data in t 17 sr C 100 +2 t a + t c C2t clp - 25 +2 t a + t c ns data hold after rd rising edge t 18 sr0C0Cns data float after rd rising edge (with rw-delay) t 20 sr C 47.5 + t f Ct clp - 15 + t f ns data float after rd rising edge (no rw-delay) t 21 sr C 15 + t f Ct clmin - 10 + t f ns data valid to wr t 22 cc 47.5 + t c Ct clp - 15 + t c Cns
sab 80c166w/83c166w semiconductor group 58 data hold after wr t 24 cc 15 + t f Ct cl min - 10 + t f Cns ale rising edge after rd, wr t 26 cc -10 + t f C -10 + t f Cns address hold after rd, wr t 28 cc 0 + t f C0 + t f Cns parameter symbol cpu clock = 16 mhz duty cycle 0.4 to 0.6 variable cpu clock 1/t clp = 1 to 20 mhz unit min. max. min. max.
sab 80c166w/83c166w semiconductor group 59 figure 13-1 external memory cycle: demultiplexed bus, with read/write delay, normal ale data out data in address ale a17-a16 a15-a0 bhe bus (d15-d8) d7-d0 read cycle rd write cycle t 5 t 16 t 17 t 6 t 26 t 28 t 18 t 20 t 14 t 12 t 22 t 24 t 12 t 8 t 8 bus (d15-d8) d7-d0 wr
sab 80c166w/83c166w semiconductor group 60 figure 13-2 external memory cycle: demultiplexed bus, with read/write delay, extended ale data out data in address ale a17-a16 a15-a0 bhe read cycle rd write cycle t 5 t 16 t 17 t 6 t 26 t 28 t 18 t 20 t 14 t 12 t 22 t 24 t 12 t 8 t 8 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0 wr
sab 80c166w/83c166w semiconductor group 61 figure 13-3 external memory cycle: demultiplexed bus, no read/write delay, normal ale data out data in address ale a17-a16 a15-a0 bhe read cycle rd write cycle t 5 t 16 t 17 t 6 t 26 t 28 t 18 t 21 t 15 t 13 t 22 t 24 t 13 t 9 t 9 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0 wr
sab 80c166w/83c166w semiconductor group 62 figure 13-4 external memory cycle: demultiplexed bus, no read/write delay, extended ale data out data in address ale a17-a16 a15-a0 bhe read cycle rd write cycle wr t 5 t 16 t 17 t 6 t 26 t 28 t 18 t 21 t 15 t 13 t 22 t 24 t 13 t 9 t 9 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0
sab 80c166w/83c166w semiconductor group 63 ac characteristics (contd) clkout and ready v cc = 5 v 10 %; v ss = 0 v t a = 0 to + 70 ?c for sab 83c166w-5m, sab 80c166w/83c166w-m t a = C 40 to + 85 ?c for sab 83c166w-5m-t3, sab 80c166w/83c166w-m-t3 t a = C 40 to + 110 ?c for sab 83c166w-5m-t4, sab 80c166w/83c166w-m-t4 c l (for port 0, port 1, port 4, ale, rd, wr, bhe, clkout) = 100 pf notes 1) these timings are given for test purposes only, in order to assure recognition at a specific clock edge. 2) demultiplexed bus is the worst case. for multiplexed bus 2t cl are to be added to the maximum values. this adds even more time for deactivating ready. parameter symbol cpu clock = 16 mhz duty cycle 0.4 to 0.6 variable cpu clock 1/t clp = 1 to 20 mhz unit min. max. min. max. clkout cycle time t 29 cc 62.5 62.5 t clp t clp ns clkout high time t 30 cc 15 C t clm in C 10 C ns clkout low time t 31 cc 15 C t cl min C 10 C ns clkout rise time t 32 ccC5C5ns clkout fall time t 33 ccC5C5ns clkout rising edge to ale falling edge t 34 cc 0 + t a 10 + t a 0 + t a 10 + t a ns synchronous ready setup time to clkout t 35 sr 10 C 10 C ns synchronous ready hold time after clkout t 36 sr 10 C 10 C ns asynchronous ready low time t 37 sr 77.5 C t clp + 15 C ns asynchronous ready setup time 1) t 58 sr 20 C 20 C ns asynchronous ready hold time 1) t 59 sr 0C0Cns async. ready hold time after rd, wr high (demultiplexed bus) 2) t 60 sr 00 +2 t a + t f 2) 0t cl - 25 +2 t a + t f 2) ns
sab 80c166w/83c166w semiconductor group 64 figure 14 clkout and ready notes 1) cycle as programmed, including mctc waitstates (example shows 0 mctc ws). 2) the leading edge of the respective command depends on rw-delay. 3) ready sampled high at this sampling point generates a ready controlled waitstate, ready sampled low at this sampling point terminates the currently running bus cycle. 4) ready may be deactivated in response to the trailing (rising) edge of the corresponding command ( rd or wr). 5) if the asynchronous ready signal does not fulfill the indicated setup and hold times with respect to clkout (eg. because clkout is not enabled), it must fulfill t 37 in order to be safely synchronized. this is guaranteed, if ready is removed in reponse to the command (see note 4) ). 6) multiplexed bus modes have a mux waitstate added after a bus cycle, and an additional mttc waitstate may be inserted here. for a multiplexed bus with mttc waitstate this delay is 2 clkout cycles, for a demultiplexed bus without mttc waitstate this delay is zero. 7) the next external bus cycle may start here. clkout ale t 30 t 34 sync ready t 35 t 36 t 35 t 36 async ready t 58 t 59 t 58 t 59 waitstate ready mux/tristate 6) t 32 t 33 t 29 running cycle 1) t 31 t 37 3) 3) 5) command rd, wr t 60 4) see 6) 2) 7) 3) 3)
sab 80c166w/83c166w semiconductor group 65 ac characteristics (contd) external bus arbitration v cc = 5 v 10 %; v ss = 0 v t a = 0 to + 70 ?c for sab 83c166w-5m, sab 80c166w/83c166w-m t a = C 40 to + 85 ?c for sab 83c166w-5m-t3, sab 80c166w/83c166w-m-t3 t a = C 40 to + 110 ?c for sab 83c166w-5m-t4, sab 80c166w/83c166w-m-t4 c l (for port 0, port 1, port 4, ale, rd, wr, bhe, clkout) = 100 pf parameter symbol cpu clock = 16 mhz duty cycle 0.4 to 0.6 variable cpu clock 1/t clp = 1 to 20 mhz unit min. max. min. max. hold input setup time to clkout t 61 sr 20 C 20 C ns clkout to hlda high or breq low delay t 62 cc C 50 C 50 ns clkout to hlda low or breq high delay t 63 cc C 60 C 60 ns other signals release t 66 cc C 25 C 25 ns other signals drive t 67 cc C 60 C 60 ns
sab 80c166w/83c166w semiconductor group 66 figure 15 external bus arbitration, releasing the bus notes 1) the sab 80c166w/83c166w will complete the currently running bus cycle before granting bus access. 2) this is the first possibility for breq to get active. clkout hold t 61 hlda t 63 other signals 1) 1) 2) breq t 62 t 66
sab 80c166w/83c166w semiconductor group 67 figure 16 external bus arbitration, (regaining the bus) notes 1) this is the last chance for breq to trigger the indicated regain-sequence. even if breq is activated earlier, the regain-sequence is initiated by hold going high. please note that hold may also be deactivated without the sab 80c166w/83c166w requesting the bus. 2) the next sab 80c166w/83c166w driven bus cycle may start here. clkout hold hlda other signals t 62 t 67 t 62 1) 2) t 61 breq t 63 t 62


▲Up To Search▲   

 
Price & Availability of SAB83C166W-5M-T3

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X